Ext.onReady(function() {
    new Ext.Viewport({
       layout: 'border',
        items: [ treePanel,  tabPanel]
    });

    treePanel.getRootNode().expand();
});